3.77 \(\int \frac{\csc ^6(c+d x)}{(a+b \tan (c+d x))^4} \, dx\)

Optimal. Leaf size=300 \[ -\frac{b \left (20 a^2 b^2+3 a^4+21 b^4\right )}{a^8 d (a+b \tan (c+d x))}-\frac{b \left (a^2+b^2\right ) \left (a^2+3 b^2\right )}{a^7 d (a+b \tan (c+d x))^2}-\frac{b \left (a^2+b^2\right )^2}{3 a^6 d (a+b \tan (c+d x))^3}-\frac{2 \left (a^2+5 b^2\right ) \cot ^3(c+d x)}{3 a^6 d}+\frac{2 b \left (2 a^2+5 b^2\right ) \cot ^2(c+d x)}{a^7 d}-\frac{\left (20 a^2 b^2+a^4+35 b^4\right ) \cot (c+d x)}{a^8 d}-\frac{4 b \left (10 a^2 b^2+a^4+14 b^4\right ) \log (\tan (c+d x))}{a^9 d}+\frac{4 b \left (10 a^2 b^2+a^4+14 b^4\right ) \log (a+b \tan (c+d x))}{a^9 d}+\frac{b \cot ^4(c+d x)}{a^5 d}-\frac{\cot ^5(c+d x)}{5 a^4 d} \]

[Out]

-(((a^4 + 20*a^2*b^2 + 35*b^4)*Cot[c + d*x])/(a^8*d)) + (2*b*(2*a^2 + 5*b^2)*Cot[c + d*x]^2)/(a^7*d) - (2*(a^2
 + 5*b^2)*Cot[c + d*x]^3)/(3*a^6*d) + (b*Cot[c + d*x]^4)/(a^5*d) - Cot[c + d*x]^5/(5*a^4*d) - (4*b*(a^4 + 10*a
^2*b^2 + 14*b^4)*Log[Tan[c + d*x]])/(a^9*d) + (4*b*(a^4 + 10*a^2*b^2 + 14*b^4)*Log[a + b*Tan[c + d*x]])/(a^9*d
) - (b*(a^2 + b^2)^2)/(3*a^6*d*(a + b*Tan[c + d*x])^3) - (b*(a^2 + b^2)*(a^2 + 3*b^2))/(a^7*d*(a + b*Tan[c + d
*x])^2) - (b*(3*a^4 + 20*a^2*b^2 + 21*b^4))/(a^8*d*(a + b*Tan[c + d*x]))

________________________________________________________________________________________

Rubi [A]  time = 0.271243, antiderivative size = 300, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3516, 894} \[ -\frac{b \left (20 a^2 b^2+3 a^4+21 b^4\right )}{a^8 d (a+b \tan (c+d x))}-\frac{b \left (a^2+b^2\right ) \left (a^2+3 b^2\right )}{a^7 d (a+b \tan (c+d x))^2}-\frac{b \left (a^2+b^2\right )^2}{3 a^6 d (a+b \tan (c+d x))^3}-\frac{2 \left (a^2+5 b^2\right ) \cot ^3(c+d x)}{3 a^6 d}+\frac{2 b \left (2 a^2+5 b^2\right ) \cot ^2(c+d x)}{a^7 d}-\frac{\left (20 a^2 b^2+a^4+35 b^4\right ) \cot (c+d x)}{a^8 d}-\frac{4 b \left (10 a^2 b^2+a^4+14 b^4\right ) \log (\tan (c+d x))}{a^9 d}+\frac{4 b \left (10 a^2 b^2+a^4+14 b^4\right ) \log (a+b \tan (c+d x))}{a^9 d}+\frac{b \cot ^4(c+d x)}{a^5 d}-\frac{\cot ^5(c+d x)}{5 a^4 d} \]

Antiderivative was successfully verified.

[In]

Int[Csc[c + d*x]^6/(a + b*Tan[c + d*x])^4,x]

[Out]

-(((a^4 + 20*a^2*b^2 + 35*b^4)*Cot[c + d*x])/(a^8*d)) + (2*b*(2*a^2 + 5*b^2)*Cot[c + d*x]^2)/(a^7*d) - (2*(a^2
 + 5*b^2)*Cot[c + d*x]^3)/(3*a^6*d) + (b*Cot[c + d*x]^4)/(a^5*d) - Cot[c + d*x]^5/(5*a^4*d) - (4*b*(a^4 + 10*a
^2*b^2 + 14*b^4)*Log[Tan[c + d*x]])/(a^9*d) + (4*b*(a^4 + 10*a^2*b^2 + 14*b^4)*Log[a + b*Tan[c + d*x]])/(a^9*d
) - (b*(a^2 + b^2)^2)/(3*a^6*d*(a + b*Tan[c + d*x])^3) - (b*(a^2 + b^2)*(a^2 + 3*b^2))/(a^7*d*(a + b*Tan[c + d
*x])^2) - (b*(3*a^4 + 20*a^2*b^2 + 21*b^4))/(a^8*d*(a + b*Tan[c + d*x]))

Rule 3516

Int[sin[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[b/f, Subst[Int
[(x^m*(a + x)^n)/(b^2 + x^2)^(m/2 + 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x] && IntegerQ[m/
2]

Rule 894

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIn
tegrand[(d + e*x)^m*(f + g*x)^n*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] &&
NeQ[c*d^2 + a*e^2, 0] && IntegerQ[p] && ((EqQ[p, 1] && IntegersQ[m, n]) || (ILtQ[m, 0] && ILtQ[n, 0]))

Rubi steps

\begin{align*} \int \frac{\csc ^6(c+d x)}{(a+b \tan (c+d x))^4} \, dx &=\frac{b \operatorname{Subst}\left (\int \frac{\left (b^2+x^2\right )^2}{x^6 (a+x)^4} \, dx,x,b \tan (c+d x)\right )}{d}\\ &=\frac{b \operatorname{Subst}\left (\int \left (\frac{b^4}{a^4 x^6}-\frac{4 b^4}{a^5 x^5}+\frac{2 b^2 \left (a^2+5 b^2\right )}{a^6 x^4}-\frac{4 \left (2 a^2 b^2+5 b^4\right )}{a^7 x^3}+\frac{a^4+20 a^2 b^2+35 b^4}{a^8 x^2}-\frac{4 \left (a^4+10 a^2 b^2+14 b^4\right )}{a^9 x}+\frac{\left (a^2+b^2\right )^2}{a^6 (a+x)^4}+\frac{2 \left (a^4+4 a^2 b^2+3 b^4\right )}{a^7 (a+x)^3}+\frac{3 a^4+20 a^2 b^2+21 b^4}{a^8 (a+x)^2}+\frac{4 \left (a^4+10 a^2 b^2+14 b^4\right )}{a^9 (a+x)}\right ) \, dx,x,b \tan (c+d x)\right )}{d}\\ &=-\frac{\left (a^4+20 a^2 b^2+35 b^4\right ) \cot (c+d x)}{a^8 d}+\frac{2 b \left (2 a^2+5 b^2\right ) \cot ^2(c+d x)}{a^7 d}-\frac{2 \left (a^2+5 b^2\right ) \cot ^3(c+d x)}{3 a^6 d}+\frac{b \cot ^4(c+d x)}{a^5 d}-\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{4 b \left (a^4+10 a^2 b^2+14 b^4\right ) \log (\tan (c+d x))}{a^9 d}+\frac{4 b \left (a^4+10 a^2 b^2+14 b^4\right ) \log (a+b \tan (c+d x))}{a^9 d}-\frac{b \left (a^2+b^2\right )^2}{3 a^6 d (a+b \tan (c+d x))^3}-\frac{b \left (a^2+b^2\right ) \left (a^2+3 b^2\right )}{a^7 d (a+b \tan (c+d x))^2}-\frac{b \left (3 a^4+20 a^2 b^2+21 b^4\right )}{a^8 d (a+b \tan (c+d x))}\\ \end{align*}

Mathematica [B]  time = 1.63369, size = 673, normalized size = 2.24 \[ \frac{\sec ^4(c+d x) (a \cos (c+d x)+b \sin (c+d x)) \left (-7680 b \left (10 a^2 b^2+a^4+14 b^4\right ) \log (\sin (c+d x)) (a \cos (c+d x)+b \sin (c+d x))^3+7680 b \left (10 a^2 b^2+a^4+14 b^4\right ) (a \cos (c+d x)+b \sin (c+d x))^3 \log (a \cos (c+d x)+b \sin (c+d x))+\csc ^5(c+d x) \left (372 a^5 b^3 \sin (2 (c+d x))-2476 a^5 b^3 \sin (4 (c+d x))+2756 a^5 b^3 \sin (6 (c+d x))-922 a^5 b^3 \sin (8 (c+d x))+4830 a^3 b^5 \sin (2 (c+d x))-9730 a^3 b^5 \sin (4 (c+d x))+7670 a^3 b^5 \sin (6 (c+d x))-2095 a^3 b^5 \sin (8 (c+d x))+776 a^6 b^2 \cos (6 (c+d x))-316 a^6 b^2 \cos (8 (c+d x))-1000 a^4 b^4 \cos (6 (c+d x))-70 a^4 b^4 \cos (8 (c+d x))-8540 a^2 b^6 \cos (6 (c+d x))+1645 a^2 b^6 \cos (8 (c+d x))-4 \left (194 a^6 b^2+1510 a^4 b^4+5705 a^2 b^6+52 a^8+4410 b^8\right ) \cos (2 (c+d x))+4 \left (-16 a^6 b^2+1010 a^4 b^4+4585 a^2 b^6+4 a^8+2205 b^8\right ) \cos (4 (c+d x))+380 a^6 b^2+3070 a^4 b^4+11375 a^2 b^6+264 a^7 b \sin (2 (c+d x))+144 a^7 b \sin (4 (c+d x))-24 a^7 b \sin (6 (c+d x))-24 a^7 b \sin (8 (c+d x))+16 a^8 \cos (6 (c+d x))-8 a^8 \cos (8 (c+d x))-200 a^8+1470 a b^7 \sin (2 (c+d x))-1470 a b^7 \sin (4 (c+d x))+630 a b^7 \sin (6 (c+d x))-105 a b^7 \sin (8 (c+d x))-2520 b^8 \cos (6 (c+d x))+315 b^8 \cos (8 (c+d x))+11025 b^8\right )\right )}{1920 a^9 d (a+b \tan (c+d x))^4} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[c + d*x]^6/(a + b*Tan[c + d*x])^4,x]

[Out]

(Sec[c + d*x]^4*(a*Cos[c + d*x] + b*Sin[c + d*x])*(-7680*b*(a^4 + 10*a^2*b^2 + 14*b^4)*Log[Sin[c + d*x]]*(a*Co
s[c + d*x] + b*Sin[c + d*x])^3 + 7680*b*(a^4 + 10*a^2*b^2 + 14*b^4)*Log[a*Cos[c + d*x] + b*Sin[c + d*x]]*(a*Co
s[c + d*x] + b*Sin[c + d*x])^3 + Csc[c + d*x]^5*(-200*a^8 + 380*a^6*b^2 + 3070*a^4*b^4 + 11375*a^2*b^6 + 11025
*b^8 - 4*(52*a^8 + 194*a^6*b^2 + 1510*a^4*b^4 + 5705*a^2*b^6 + 4410*b^8)*Cos[2*(c + d*x)] + 4*(4*a^8 - 16*a^6*
b^2 + 1010*a^4*b^4 + 4585*a^2*b^6 + 2205*b^8)*Cos[4*(c + d*x)] + 16*a^8*Cos[6*(c + d*x)] + 776*a^6*b^2*Cos[6*(
c + d*x)] - 1000*a^4*b^4*Cos[6*(c + d*x)] - 8540*a^2*b^6*Cos[6*(c + d*x)] - 2520*b^8*Cos[6*(c + d*x)] - 8*a^8*
Cos[8*(c + d*x)] - 316*a^6*b^2*Cos[8*(c + d*x)] - 70*a^4*b^4*Cos[8*(c + d*x)] + 1645*a^2*b^6*Cos[8*(c + d*x)]
+ 315*b^8*Cos[8*(c + d*x)] + 264*a^7*b*Sin[2*(c + d*x)] + 372*a^5*b^3*Sin[2*(c + d*x)] + 4830*a^3*b^5*Sin[2*(c
 + d*x)] + 1470*a*b^7*Sin[2*(c + d*x)] + 144*a^7*b*Sin[4*(c + d*x)] - 2476*a^5*b^3*Sin[4*(c + d*x)] - 9730*a^3
*b^5*Sin[4*(c + d*x)] - 1470*a*b^7*Sin[4*(c + d*x)] - 24*a^7*b*Sin[6*(c + d*x)] + 2756*a^5*b^3*Sin[6*(c + d*x)
] + 7670*a^3*b^5*Sin[6*(c + d*x)] + 630*a*b^7*Sin[6*(c + d*x)] - 24*a^7*b*Sin[8*(c + d*x)] - 922*a^5*b^3*Sin[8
*(c + d*x)] - 2095*a^3*b^5*Sin[8*(c + d*x)] - 105*a*b^7*Sin[8*(c + d*x)])))/(1920*a^9*d*(a + b*Tan[c + d*x])^4
)

________________________________________________________________________________________

Maple [A]  time = 0.165, size = 476, normalized size = 1.6 \begin{align*} -{\frac{1}{5\,d{a}^{4} \left ( \tan \left ( dx+c \right ) \right ) ^{5}}}-{\frac{2}{3\,d{a}^{4} \left ( \tan \left ( dx+c \right ) \right ) ^{3}}}-{\frac{10\,{b}^{2}}{3\,d{a}^{6} \left ( \tan \left ( dx+c \right ) \right ) ^{3}}}-{\frac{1}{d{a}^{4}\tan \left ( dx+c \right ) }}-20\,{\frac{{b}^{2}}{d{a}^{6}\tan \left ( dx+c \right ) }}-35\,{\frac{{b}^{4}}{d{a}^{8}\tan \left ( dx+c \right ) }}+{\frac{b}{d{a}^{5} \left ( \tan \left ( dx+c \right ) \right ) ^{4}}}+4\,{\frac{b}{d{a}^{5} \left ( \tan \left ( dx+c \right ) \right ) ^{2}}}+10\,{\frac{{b}^{3}}{d{a}^{7} \left ( \tan \left ( dx+c \right ) \right ) ^{2}}}-4\,{\frac{b\ln \left ( \tan \left ( dx+c \right ) \right ) }{d{a}^{5}}}-40\,{\frac{{b}^{3}\ln \left ( \tan \left ( dx+c \right ) \right ) }{d{a}^{7}}}-56\,{\frac{{b}^{5}\ln \left ( \tan \left ( dx+c \right ) \right ) }{d{a}^{9}}}-3\,{\frac{b}{d{a}^{4} \left ( a+b\tan \left ( dx+c \right ) \right ) }}-20\,{\frac{{b}^{3}}{d{a}^{6} \left ( a+b\tan \left ( dx+c \right ) \right ) }}-21\,{\frac{{b}^{5}}{d{a}^{8} \left ( a+b\tan \left ( dx+c \right ) \right ) }}-{\frac{b}{3\,{a}^{2}d \left ( a+b\tan \left ( dx+c \right ) \right ) ^{3}}}-{\frac{2\,{b}^{3}}{3\,d{a}^{4} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{3}}}-{\frac{{b}^{5}}{3\,d{a}^{6} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{3}}}-{\frac{b}{{a}^{3}d \left ( a+b\tan \left ( dx+c \right ) \right ) ^{2}}}-4\,{\frac{{b}^{3}}{d{a}^{5} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{2}}}-3\,{\frac{{b}^{5}}{d{a}^{7} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{2}}}+4\,{\frac{b\ln \left ( a+b\tan \left ( dx+c \right ) \right ) }{d{a}^{5}}}+40\,{\frac{{b}^{3}\ln \left ( a+b\tan \left ( dx+c \right ) \right ) }{d{a}^{7}}}+56\,{\frac{{b}^{5}\ln \left ( a+b\tan \left ( dx+c \right ) \right ) }{d{a}^{9}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(d*x+c)^6/(a+b*tan(d*x+c))^4,x)

[Out]

-1/5/d/a^4/tan(d*x+c)^5-2/3/d/a^4/tan(d*x+c)^3-10/3/d/a^6/tan(d*x+c)^3*b^2-1/d/a^4/tan(d*x+c)-20/d/a^6/tan(d*x
+c)*b^2-35/d/a^8/tan(d*x+c)*b^4+1/d/a^5*b/tan(d*x+c)^4+4/d/a^5*b/tan(d*x+c)^2+10/d*b^3/a^7/tan(d*x+c)^2-4*b*ln
(tan(d*x+c))/a^5/d-40/d*b^3/a^7*ln(tan(d*x+c))-56/d*b^5/a^9*ln(tan(d*x+c))-3*b/a^4/d/(a+b*tan(d*x+c))-20/d*b^3
/a^6/(a+b*tan(d*x+c))-21/d*b^5/a^8/(a+b*tan(d*x+c))-1/3*b/a^2/d/(a+b*tan(d*x+c))^3-2/3/d*b^3/a^4/(a+b*tan(d*x+
c))^3-1/3/d*b^5/a^6/(a+b*tan(d*x+c))^3-b/a^3/d/(a+b*tan(d*x+c))^2-4/d*b^3/a^5/(a+b*tan(d*x+c))^2-3/d*b^5/a^7/(
a+b*tan(d*x+c))^2+4*b*ln(a+b*tan(d*x+c))/a^5/d+40/d*b^3/a^7*ln(a+b*tan(d*x+c))+56/d*b^5/a^9*ln(a+b*tan(d*x+c))

________________________________________________________________________________________

Maxima [A]  time = 1.23988, size = 439, normalized size = 1.46 \begin{align*} \frac{\frac{6 \, a^{6} b \tan \left (d x + c\right ) - 60 \,{\left (a^{4} b^{3} + 10 \, a^{2} b^{5} + 14 \, b^{7}\right )} \tan \left (d x + c\right )^{7} - 3 \, a^{7} - 150 \,{\left (a^{5} b^{2} + 10 \, a^{3} b^{4} + 14 \, a b^{6}\right )} \tan \left (d x + c\right )^{6} - 110 \,{\left (a^{6} b + 10 \, a^{4} b^{3} + 14 \, a^{2} b^{5}\right )} \tan \left (d x + c\right )^{5} - 15 \,{\left (a^{7} + 10 \, a^{5} b^{2} + 14 \, a^{3} b^{4}\right )} \tan \left (d x + c\right )^{4} + 6 \,{\left (5 \, a^{6} b + 7 \, a^{4} b^{3}\right )} \tan \left (d x + c\right )^{3} - 2 \,{\left (5 \, a^{7} + 7 \, a^{5} b^{2}\right )} \tan \left (d x + c\right )^{2}}{a^{8} b^{3} \tan \left (d x + c\right )^{8} + 3 \, a^{9} b^{2} \tan \left (d x + c\right )^{7} + 3 \, a^{10} b \tan \left (d x + c\right )^{6} + a^{11} \tan \left (d x + c\right )^{5}} + \frac{60 \,{\left (a^{4} b + 10 \, a^{2} b^{3} + 14 \, b^{5}\right )} \log \left (b \tan \left (d x + c\right ) + a\right )}{a^{9}} - \frac{60 \,{\left (a^{4} b + 10 \, a^{2} b^{3} + 14 \, b^{5}\right )} \log \left (\tan \left (d x + c\right )\right )}{a^{9}}}{15 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(d*x+c)^6/(a+b*tan(d*x+c))^4,x, algorithm="maxima")

[Out]

1/15*((6*a^6*b*tan(d*x + c) - 60*(a^4*b^3 + 10*a^2*b^5 + 14*b^7)*tan(d*x + c)^7 - 3*a^7 - 150*(a^5*b^2 + 10*a^
3*b^4 + 14*a*b^6)*tan(d*x + c)^6 - 110*(a^6*b + 10*a^4*b^3 + 14*a^2*b^5)*tan(d*x + c)^5 - 15*(a^7 + 10*a^5*b^2
 + 14*a^3*b^4)*tan(d*x + c)^4 + 6*(5*a^6*b + 7*a^4*b^3)*tan(d*x + c)^3 - 2*(5*a^7 + 7*a^5*b^2)*tan(d*x + c)^2)
/(a^8*b^3*tan(d*x + c)^8 + 3*a^9*b^2*tan(d*x + c)^7 + 3*a^10*b*tan(d*x + c)^6 + a^11*tan(d*x + c)^5) + 60*(a^4
*b + 10*a^2*b^3 + 14*b^5)*log(b*tan(d*x + c) + a)/a^9 - 60*(a^4*b + 10*a^2*b^3 + 14*b^5)*log(tan(d*x + c))/a^9
)/d

________________________________________________________________________________________

Fricas [B]  time = 4.43096, size = 3507, normalized size = 11.69 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(d*x+c)^6/(a+b*tan(d*x+c))^4,x, algorithm="fricas")

[Out]

-1/15*(110*a^6*b^4 + 510*a^4*b^6 + 420*a^2*b^8 - 4*(2*a^10 + 81*a^8*b^2 + 29*a^6*b^4 - 660*a^4*b^6 - 630*a^2*b
^8)*cos(d*x + c)^8 + 2*(10*a^10 + 423*a^8*b^2 - 47*a^6*b^4 - 4320*a^4*b^6 - 3990*a^2*b^8)*cos(d*x + c)^6 - 15*
(a^10 + 47*a^8*b^2 - 44*a^6*b^4 - 658*a^4*b^6 - 588*a^2*b^8)*cos(d*x + c)^4 + 20*(9*a^8*b^2 - 28*a^6*b^4 - 219
*a^4*b^6 - 189*a^2*b^8)*cos(d*x + c)^2 + 30*(a^6*b^4 + 11*a^4*b^6 + 24*a^2*b^8 + 14*b^10 - (3*a^8*b^2 + 32*a^6
*b^4 + 61*a^4*b^6 + 18*a^2*b^8 - 14*b^10)*cos(d*x + c)^8 + (9*a^8*b^2 + 95*a^6*b^4 + 172*a^4*b^6 + 30*a^2*b^8
- 56*b^10)*cos(d*x + c)^6 - 3*(3*a^8*b^2 + 31*a^6*b^4 + 50*a^4*b^6 - 6*a^2*b^8 - 28*b^10)*cos(d*x + c)^4 + (3*
a^8*b^2 + 29*a^6*b^4 + 28*a^4*b^6 - 54*a^2*b^8 - 56*b^10)*cos(d*x + c)^2 + ((a^9*b + 8*a^7*b^3 - 9*a^5*b^5 - 5
8*a^3*b^7 - 42*a*b^9)*cos(d*x + c)^7 - (2*a^9*b + 13*a^7*b^3 - 51*a^5*b^5 - 188*a^3*b^7 - 126*a*b^9)*cos(d*x +
 c)^5 + (a^9*b + 2*a^7*b^3 - 75*a^5*b^5 - 202*a^3*b^7 - 126*a*b^9)*cos(d*x + c)^3 + 3*(a^7*b^3 + 11*a^5*b^5 +
24*a^3*b^7 + 14*a*b^9)*cos(d*x + c))*sin(d*x + c))*log(2*a*b*cos(d*x + c)*sin(d*x + c) + (a^2 - b^2)*cos(d*x +
 c)^2 + b^2) - 30*(a^6*b^4 + 11*a^4*b^6 + 24*a^2*b^8 + 14*b^10 - (3*a^8*b^2 + 32*a^6*b^4 + 61*a^4*b^6 + 18*a^2
*b^8 - 14*b^10)*cos(d*x + c)^8 + (9*a^8*b^2 + 95*a^6*b^4 + 172*a^4*b^6 + 30*a^2*b^8 - 56*b^10)*cos(d*x + c)^6
- 3*(3*a^8*b^2 + 31*a^6*b^4 + 50*a^4*b^6 - 6*a^2*b^8 - 28*b^10)*cos(d*x + c)^4 + (3*a^8*b^2 + 29*a^6*b^4 + 28*
a^4*b^6 - 54*a^2*b^8 - 56*b^10)*cos(d*x + c)^2 + ((a^9*b + 8*a^7*b^3 - 9*a^5*b^5 - 58*a^3*b^7 - 42*a*b^9)*cos(
d*x + c)^7 - (2*a^9*b + 13*a^7*b^3 - 51*a^5*b^5 - 188*a^3*b^7 - 126*a*b^9)*cos(d*x + c)^5 + (a^9*b + 2*a^7*b^3
 - 75*a^5*b^5 - 202*a^3*b^7 - 126*a*b^9)*cos(d*x + c)^3 + 3*(a^7*b^3 + 11*a^5*b^5 + 24*a^3*b^7 + 14*a*b^9)*cos
(d*x + c))*sin(d*x + c))*log(-1/4*cos(d*x + c)^2 + 1/4) - 2*(2*(6*a^9*b + 259*a^7*b^3 + 783*a^5*b^5 + 340*a^3*
b^7 - 210*a*b^9)*cos(d*x + c)^7 - (15*a^9*b + 1141*a^7*b^3 + 3546*a^5*b^5 + 1270*a^3*b^7 - 1260*a*b^9)*cos(d*x
 + c)^5 + 5*(151*a^7*b^3 + 483*a^5*b^5 + 100*a^3*b^7 - 252*a*b^9)*cos(d*x + c)^3 - 15*(9*a^7*b^3 + 29*a^5*b^5
- 6*a^3*b^7 - 28*a*b^9)*cos(d*x + c))*sin(d*x + c))/((3*a^13*b + 2*a^11*b^3 - a^9*b^5)*d*cos(d*x + c)^8 - (9*a
^13*b + 5*a^11*b^3 - 4*a^9*b^5)*d*cos(d*x + c)^6 + 3*(3*a^13*b + a^11*b^3 - 2*a^9*b^5)*d*cos(d*x + c)^4 - (3*a
^13*b - a^11*b^3 - 4*a^9*b^5)*d*cos(d*x + c)^2 - (a^11*b^3 + a^9*b^5)*d - ((a^14 - 2*a^12*b^2 - 3*a^10*b^4)*d*
cos(d*x + c)^7 - (2*a^14 - 7*a^12*b^2 - 9*a^10*b^4)*d*cos(d*x + c)^5 + (a^14 - 8*a^12*b^2 - 9*a^10*b^4)*d*cos(
d*x + c)^3 + 3*(a^12*b^2 + a^10*b^4)*d*cos(d*x + c))*sin(d*x + c))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(d*x+c)**6/(a+b*tan(d*x+c))**4,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.36148, size = 578, normalized size = 1.93 \begin{align*} -\frac{\frac{60 \,{\left (a^{4} b + 10 \, a^{2} b^{3} + 14 \, b^{5}\right )} \log \left ({\left | \tan \left (d x + c\right ) \right |}\right )}{a^{9}} - \frac{60 \,{\left (a^{4} b^{2} + 10 \, a^{2} b^{4} + 14 \, b^{6}\right )} \log \left ({\left | b \tan \left (d x + c\right ) + a \right |}\right )}{a^{9} b} + \frac{5 \,{\left (22 \, a^{4} b^{4} \tan \left (d x + c\right )^{3} + 220 \, a^{2} b^{6} \tan \left (d x + c\right )^{3} + 308 \, b^{8} \tan \left (d x + c\right )^{3} + 75 \, a^{5} b^{3} \tan \left (d x + c\right )^{2} + 720 \, a^{3} b^{5} \tan \left (d x + c\right )^{2} + 987 \, a b^{7} \tan \left (d x + c\right )^{2} + 87 \, a^{6} b^{2} \tan \left (d x + c\right ) + 792 \, a^{4} b^{4} \tan \left (d x + c\right ) + 1059 \, a^{2} b^{6} \tan \left (d x + c\right ) + 35 \, a^{7} b + 294 \, a^{5} b^{3} + 381 \, a^{3} b^{5}\right )}}{{\left (b \tan \left (d x + c\right ) + a\right )}^{3} a^{9}} - \frac{137 \, a^{4} b \tan \left (d x + c\right )^{5} + 1370 \, a^{2} b^{3} \tan \left (d x + c\right )^{5} + 1918 \, b^{5} \tan \left (d x + c\right )^{5} - 15 \, a^{5} \tan \left (d x + c\right )^{4} - 300 \, a^{3} b^{2} \tan \left (d x + c\right )^{4} - 525 \, a b^{4} \tan \left (d x + c\right )^{4} + 60 \, a^{4} b \tan \left (d x + c\right )^{3} + 150 \, a^{2} b^{3} \tan \left (d x + c\right )^{3} - 10 \, a^{5} \tan \left (d x + c\right )^{2} - 50 \, a^{3} b^{2} \tan \left (d x + c\right )^{2} + 15 \, a^{4} b \tan \left (d x + c\right ) - 3 \, a^{5}}{a^{9} \tan \left (d x + c\right )^{5}}}{15 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(d*x+c)^6/(a+b*tan(d*x+c))^4,x, algorithm="giac")

[Out]

-1/15*(60*(a^4*b + 10*a^2*b^3 + 14*b^5)*log(abs(tan(d*x + c)))/a^9 - 60*(a^4*b^2 + 10*a^2*b^4 + 14*b^6)*log(ab
s(b*tan(d*x + c) + a))/(a^9*b) + 5*(22*a^4*b^4*tan(d*x + c)^3 + 220*a^2*b^6*tan(d*x + c)^3 + 308*b^8*tan(d*x +
 c)^3 + 75*a^5*b^3*tan(d*x + c)^2 + 720*a^3*b^5*tan(d*x + c)^2 + 987*a*b^7*tan(d*x + c)^2 + 87*a^6*b^2*tan(d*x
 + c) + 792*a^4*b^4*tan(d*x + c) + 1059*a^2*b^6*tan(d*x + c) + 35*a^7*b + 294*a^5*b^3 + 381*a^3*b^5)/((b*tan(d
*x + c) + a)^3*a^9) - (137*a^4*b*tan(d*x + c)^5 + 1370*a^2*b^3*tan(d*x + c)^5 + 1918*b^5*tan(d*x + c)^5 - 15*a
^5*tan(d*x + c)^4 - 300*a^3*b^2*tan(d*x + c)^4 - 525*a*b^4*tan(d*x + c)^4 + 60*a^4*b*tan(d*x + c)^3 + 150*a^2*
b^3*tan(d*x + c)^3 - 10*a^5*tan(d*x + c)^2 - 50*a^3*b^2*tan(d*x + c)^2 + 15*a^4*b*tan(d*x + c) - 3*a^5)/(a^9*t
an(d*x + c)^5))/d